<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{$Think.config.site.title} - 完善有关信息</title>
<link href="{$Think.config.site.resource_url}css/bootstrap.min.css" rel="stylesheet">
<link href="{$Think.config.site.resource_url}css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
<link href="{$Think.config.site.resource_url}css/animate.css" rel="stylesheet">
<link href="{$Think.config.site.resource_url}css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{$Think.config.site.resource_url}css/plugins/markdown/bootstrap-markdown.min.css" />
<link href="{$Think.config.site.resource_url}css/gloab.css" rel="stylesheet">
<link href="{$Think.config.site.resource_url}css/index.css" rel="stylesheet">
<script src="{$Think.config.site.resource_url}js/jquery.min.js"></script>
<script src="{$Think.config.site.resource_url}js/register.js"></script>
</head>
<style>
    input::-webkit-input-placeholder { /* WebKit browsers */
　　color:#999;
　　}
　　input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
　　color:#999;
　　}
　　input::-moz-placeholder { /* Mozilla Firefox 19+ */
　　color:#999;
　　}
　　input:-ms-input-placeholder { /* Internet Explorer 10+ */
　　color:#999;
　　}
</style>

<body class="bgf4">
<div class="login-box f-mt10 f-pb50">
	<div class="main bgf">    
    	<div class="reg-box-pan display-inline">  
        	<div class="step">        	
                <ul>
                    <li class="col-xs-2 on">
                        <span class="num"><em class="f-r5"></em><i>1</i></span>                	
                        <span class="line_bg lbg-r"></span>
                        <p class="lbg-txt">完善基本信息</p>
                    </li>
                    <li class="col-xs-2">
                        <span class="num"><em class="f-r5"></em><i>2</i></span>
                        <span class="line_bg lbg-l"></span>
                        <span class="line_bg lbg-r"></span>
                        <p class="lbg-txt">完善短信接口信息</p>
                    </li>
                    <li class="col-xs-2">
                        <span class="num"><em class="f-r5"></em><i>3</i></span>
                        <span class="line_bg lbg-l"></span>
                        <span class="line_bg lbg-r"></span>
                        <p class="lbg-txt">完善支付有关的信息</p>
                    </li>
                    <li class="col-xs-2">
                        <span class="num"><em class="f-r5"></em><i>4</i></span>
                        <span class="line_bg lbg-l"></span>
                        <span class="line_bg lbg-r"></span>
                        <p class="lbg-txt">完善有关协议内容</p>
                    </li>
                    <li class="col-xs-2">
                        <span class="num"><em class="f-r5"></em><i>5</i></span>
                        <span class="line_bg lbg-l"></span>
                        <span class="line_bg lbg-r"></span>
                        <p class="lbg-txt">支付相关费用</p>
                    </li>
                    <li class="col-xs-2">
                        <span class="num"><em class="f-r5"></em><i>6</i></span>
                        <span class="line_bg lbg-l"></span>
                        <p class="lbg-txt">小程序授权</p>
                    </li>
                </ul>
            </div>
        	<div class="reg-box" id="verifyCheck" style="margin-top:20px;">
                
                <form method="post" class="form-horizontal"  id="Myform1" enctype="multipart/form-data" >
            	<div class="part1"><input type="hidden" name="id" value="{$v.id}">                	
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>运营商名称：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text"  class="txt03 f-r3 required" tabindex="1" data-valid="isNonEmpty" data-error="运营商名称不能为空" id="name" name="name" value="{$v.name}" placeholder="请输入运营商名称" />
                            <span class="ie8 icon-close close hide"></span>
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写运营商名称</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>LOGO：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"    data-valid="isNonEmpty" data-error="请上传LOGO图片,大小不能超过1M"  id="uplogo" value="{$v.logo}" />
                            <input type="file" name="logo" style="display: none;" id="logo"> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请上传LOGO图片,大小不能超过1M</label>
                            <label class="focus valid"></label> 
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>联系人：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text"  class="txt03 f-r3 required" tabindex="2" data-valid="isNonEmpty" data-error="联系人名称不能为空" id="contacts" name="contacts" value="{$v.contacts}" placeholder="请输入联系人名称"  />
                            <span class="ie8 icon-close close hide"></span>
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写联系人名称</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>联系电话：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="3" data-valid="isNonEmpty" data-error="联系电话不能为空"  id="mobile" name="mobile" value="{$v.mobile}" placeholder="请输入有效的联系方式" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写11位有效的手机号码</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>客服电话：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required" keycodes="tel" tabindex="4" data-valid="isNonEmpty" data-error="客服电话不能为空" id="servicephone" name="servicephone" value="{$v.servicephone}" placeholder="请输入有效的客服电话" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写有效的客服电话</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>

                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04"></b>域名：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 " tabindex="5" placeholder="请输入正确的域名地址" id="domain" name="domain" value="{$v.domain}" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">域名地址可填可不填</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <!-- <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>企业标识：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="6" data-valid="isNonEmpty" data-error="企业标识不能为空" id="identifying" name="identifying" value="{$v.identifying}" placeholder="请输入企业标识" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写企业标识</label>
                            <label class="focus valid"></label>
                        </div>
                    </div> -->
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>地址：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="7" data-valid="isNonEmpty" data-error="联系地址不能为空" id="addrs" name="addrs" value="{$v.addrs}" placeholder="请输入联系地址" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写有效的联系地址</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>押金金额：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="8" data-valid="isNonEmpty" data-error="押金金额不能为空" id="deposit" name="deposit" value="{$v.deposit}" placeholder="请输入有效的金额数字" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写有效的押金金额</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>押金延迟：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="9" data-valid="isNonEmpty" data-error="押金延迟不能为空" id="deposit_delay" name="deposit_delay" value="{$v.deposit_delay}" placeholder="请输入有效的金额数字" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">还回充电宝后多久可以退换押金，单位分钟</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl">免费时长：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="10" data-valid="isNonEmpty" data-error="免费时长不能为空"  id="freetime" name="freetime" value="{$v.freetime}" placeholder="输入免费时长" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">用户每次租借前多少分钟免费，0表示没有免费时长</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl">每日最高消费金额：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="11" data-valid="isNonEmpty" data-error="每日最高消费金额不能为空"   id="ceiling" name="ceiling" value="{$v.ceiling ?? ''}" placeholder="输入有效的每日最高消费金额数字" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">单位元，0为不限制</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-12">
                        <span class="intelligent-label f-fl">用户端显示附近商户的距离：</span>    
                        <div class="f-fl item-ifo">
                            <input type="number"  step="0.01"  class="txt03 f-r3 required"   tabindex="12" data-valid="isNonEmpty" data-error="显示商户距离不能为空"    id="distance" name="distance" value="{$v.distance ?? ''}" placeholder="输入用户端显示附近商户的距离" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">填写用户端显示附近商户的距离,单位千米</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>

                    <!--<div class="item col-xs-6">&nbsp;</div> -->
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>计费时长：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="13" data-valid="isNonEmpty" data-error="计费时长不能为空" id="billingtime" name="billingtime" value="{$v.billingtime}" placeholder="" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">1表示: 1 小时或者 1 分钟计费</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>单位价格：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="14" data-valid="isNonEmpty" data-error="单位价格不能为空" id="amount" name="amount" value="{$v.amount}" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">如:2/小时计费0.00元</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>计费单位：</span>    
                        <div class="f-fl item-ifo">
                            <div class="radio radio-info radio-inline">
                                <input type="radio" id="inlineRadio1" value="1" name="billingunit" checked="checked">
                                <label for="inlineRadio1">小时</label>
                            </div>
                            <div class="radio radio-info radio-inline">
                                <input type="radio" id="inlineRadio2" value="2" name="billingunit">
                                <label for="inlineRadio2">分钟</label>
                            </div>
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">设置计费单位</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-12">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>充值金额：</span>
                        <div class="">
                            
                            <?php 
                                            $days_array=explode('|',$v['prepaidamount']); 
                                             foreach ($days_array as $vo){
                                                echo '<input type="text"  class="txt03 f-r3 f-fl required" tabindex="14" style="width:167px"  name="prepaidamount[]" '." value='$vo' ".' data-valid="isNonEmpty" data-error="充值金额不能为空">　';
                                             }
                                            
                                        ?>
                        </div>
                    </div>
                    <div class="item col-xs-12">
                        <span class="intelligent-label f-fl">&nbsp;</span> 
                        <h4>小程序简介</h4>
                        <span class="intelligent-label f-fl">&nbsp;</span> 
                        <div class="ibox-content">
                            <textarea name="introduce" data-provide="markdown" class="txt03 f-r3 required" rows="10" data-valid="isNonEmpty" data-error="小程序简介长不能为空">{$v.introduce}</textarea>
                        </div>
                    </div>
                    <div class="item col-xs-12">
                        <span class="intelligent-label f-fl">&nbsp;</span>    
                        <div class="f-fl item-ifo">
                           <a href="javascript:;" class="btn btn-blue f-r3" id="btn_part1">下一步</a>                         
                        </div>
                    </div> 
                </div>
                </form>
                <form method="post" class="form-horizontal"  id="Myform2">
                <div class="part2" style="display:none">
                    <div class="item col-xs-12">
                        <p class="reg-box intelligent-label" style="width: auto; text-align: left;"><b class="ftx04">温馨提示:</b>不知道怎么申请短信接口,可以点击这 <i class="fa fa-hand-o-right"> </i> <a href="<?php echo \think\Request::instance()->root(); ?>/help/sms/qcloud" style="color: #ff0000;" target="_black">查看文档详细信息</a></p>
                    </div>
                	<input type="hidden" name="id" value="{$sms['id'] ?? ''}">                   
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>选择短信提供商：</span>    
                        <div class="f-fl item-ifo">
                        <?php 
                            if(isset($sms['provider'])){
                                $provider = $sms['provider'];
                            }else{
                                $provider = '';
                            }

                            if(isset($sms['types'])){
                                $types = $sms['types'];
                            }else{
                                $types = '';
                            }

                        ?>
                            {if condition="$provider neq '' "}
                            <div class="radio radio-info radio-inline">
                                <input type="radio" id="inlineRadio3" value="1" name="provider" {if condition="$provider eq 1 "} checked="checked" {/if}>
                                <label for="inlineRadio3">腾讯云</label>
                            </div>
                            <div class="radio radio-info radio-inline">
                                <input type="radio" id="inlineRadio4" value="2" name="provider" {if condition="$provider eq 2 "} checked="checked" {/if} disabled>
                                <label for="inlineRadio4">阿里云</label>
                            </div>
                            {else /}
                            <div class="radio radio-info radio-inline">
                                <input type="radio" id="inlineRadio3" value="1" name="provider" checked="checked">
                                <label for="inlineRadio3">腾讯云</label>
                            </div>
                            <div class="radio radio-info radio-inline">
                                <input type="radio" id="inlineRadio4" value="2" name="" disabled>
                                <label for="inlineRadio4">阿里云</label>
                            </div>
                            {/if}
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>选择短信类型：</span>    
                        <div class="f-fl item-ifo">
                        {if condition="$types neq '' "}
                            <div class="radio radio-info radio-inline">
                                <input type="radio" id="inlineRadio5" value="1" name="types" {if condition="$types eq 1 "} checked="checked" {/if}>
                                <label for="inlineRadio5">短信</label>
                            </div>
                            <div class="radio radio-info radio-inline">
                                <input  type="radio" id="inlineRadio6" value="2" name="" {if condition="$types eq 2 "} checked="checked" {/if} disabled>
                                <label for="inlineRadio6">语音短信</label>
                            </div>
                        {else /}
                            <div class="radio radio-info radio-inline">
                                <input type="radio" id="inlineRadio5" value="1" name="types" checked="checked">
                                <label for="inlineRadio5">短信</label>
                            </div>
                            <div class="radio radio-info radio-inline">
                                <input type="radio" id="inlineRadio6" value="2" name="" disabled>
                                <label for="inlineRadio6">语音短信</label>
                            </div>
                        {/if}
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>验证码有效期：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="15" data-valid="isNonEmpty" data-error="验证码有效期不能为空" id="time" name="time" value="{$sms['time'] ?? '3'}"  placeholder="验证码有效期:*分钟之内"/> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">单位:分钟;如:3分钟之内 </label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>appid：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="16" data-valid="isNonEmpty" data-error="appid不能为空" id="appid" name="appid" placeholder="请输入正确的APPID" value="{$sms['appid'] ?? ''}" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写appid</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>appkey：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="17" data-valid="isNonEmpty" data-error="appkey不能为空" id="appkey" name="appkey" value="{$sms['appkey'] ?? ''}" placeholder="请输入正确的appkey,注意是否有空格" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写appkey</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>短信模版ID：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="18" data-valid="isNonEmpty" data-error="短信模版不能为空" id="templid" name="templid" placeholder="请输入正确的短信模版ID" value="{$sms['templid'] ?? ''}" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写短信模版ID</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>短信签名：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="19" data-valid="isNonEmpty" data-error="短信签名不能为空" id="signname" name="signname" placeholder="请输入短信签名" value="{$sms['signname'] ?? '' }" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">想以"【好多电】"签名发送短信，则该字段可赋值为："好多电"</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>模版内容：</span>    
                        <div class="f-fl item-ifo">
                            <textarea name="param"  id="param" class="txt03 f-r3 md-input required" data-valid="isNonEmpty" data-error="模版内容不能为空" rows="3" >{$sms['param'] ?? '' }</textarea>
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写模版内容</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>短信变量名：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="20" data-valid="isNonEmpty" data-error="短信变量名不能为空" id="codename" name="codename" value="1" placeholder="请输入短信变量名" value="{$sms['codename'] ?? '' }" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写短信变量名</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>有效时间变量名：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required"  tabindex="21" data-valid="isNonEmpty" data-error="有效时间变量名不能为空" id="timename" name="timename" value="2" placeholder="请输入有效时间变量名" value="{$sms['timename'] ?? '' }" /> 
                            <span class="ie8 icon-close close hide"></span>                           
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写有效时间变量名</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-12">
                        <span class="intelligent-label f-fl">&nbsp;</span>    
                        <div class="f-fl item-ifo">
                           <a href="javascript:;" class="btn btn-blue f-r3" id="btn_part2">下一步</a>                         
                        </div>
                    </div> 
                </div>
                </form>
                <form method="post" class="form-horizontal"  id="Myform3" enctype="multipart/form-data" >
                <div class="part3" style="display:none">
                <h3>微信支付信息相关配置</h3>
                <p class="c-666 f-mt30"><i class="fa fa-hand-o-right"> </i> <a href="<?php echo \think\Request::instance()->root(); ?>/help/pay/applewechatpay" target="_blank">点击这里申请子商户.</a></p>
                <p>&nbsp;</p>
                <input type="hidden" name="id" value="{$pay['id'] ?? ''}">
                	<div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>商户号：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text"  class="txt03 f-r3 required" data-valid="isNonEmpty" data-error="商户号不能为空" id="mchid" name="mchid" placeholder="请正确输入商户号" value="{$pay['mchid'] ?? ''}" />   
                            <span class="ie8 icon-close close hide"></span>                         
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请正确输入商户号</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <!-- <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>商户key：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required" tabindex="22" data-valid="isNonEmpty" data-error="商户key不能为空"  id="mchkey" name="mchkey" placeholder="请正确输入商户key,注意前后是否有空格" value="{$pay['mchkey'] ?? '' }" />    
                            <span class="ie8 icon-close close hide"></span>                        
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请填写商户key</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>SSLCERT_PATH：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required" tabindex="23" data-valid="isNonEmpty" data-error="SSLKEY_PATH不能为空"  id="upsslcert" value="{$pay['sslcert_path'] ?? '' }" placeholder="点击上传SSLCERT_PATH文件"/> 
                            <input type="file" name="sslcert_path" id="sslcert_path" style="display: none;">   
                            <span class="ie8 icon-close close hide"></span>                        
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请上传SSLCERT_PATH文件</label>
                            <label class="focus valid"></label>
                        </div>
                    </div>
                    <div class="item col-xs-6">
                        <span class="intelligent-label f-fl"><b class="ftx04">*</b>SSLKEY_PATH：</span>    
                        <div class="f-fl item-ifo">
                            <input type="text" class="txt03 f-r3 required" tabindex="24" data-valid="isNonEmpty" data-error="SSLKEY_PATH不能为空"  id="upsslkey" value="{$pay['sslkey_path'] ?? '' }" placeholder="点击上传SSLKEY_PATH文件" />    
                             <input type="file" name="sslkey_path" id="sslkey_path" style="display: none;">
                            <span class="ie8 icon-close close hide"></span>                        
                            <label class="icon-sucessfill blank hide"></label>
                            <label class="focus hide">请上传SSLKEY_PATH文件</label>
                            <label class="focus valid"></label>
                        </div>
                    </div> -->
                    <input type="hidden" name="submerchant" value="1">
                    <div class="item col-xs-12">
                       
                        <span class="intelligent-label f-fl">&nbsp;</span>    
                        <div class="f-fl item-ifo">
                           <a href="javascript:;" class="btn btn-blue f-r3" id="btn_part3">下一步</a>                         
                        </div>
                    </div>
                </div>
                </form>
                <form method="post" class="form-horizontal"  id="Myform4" >  
                <div class="part4 " style="display:none">
                <input type="hidden" name="id" value="{$xy['id'] ?? ''}">
                    <span class="intelligent-label f-fl">&nbsp;</span> 
                    <h4>注册协议</h4>
                    <span class="intelligent-label f-fl">&nbsp;</span> 
                    <div class="ibox-content">
                        <textarea name="xy1" id="xy1" data-provide="markdown" rows="10" class="txt03 f-r3 required" rows="10" data-valid="isNonEmpty">{$xy['xy1'] ?? ''}</textarea>
                    </div>
                    <span class="intelligent-label f-fl">&nbsp;</span> 
                    <h4>充值协议</h4>
                    <span class="intelligent-label f-fl">&nbsp;</span> 
                    <div class="ibox-content">
                        <textarea name="xy2" id="xy2" data-provide="markdown" rows="10" class="txt03 f-r3 required" rows="10" data-valid="isNonEmpty">{$xy['xy2'] ?? '' }</textarea>
                    </div>
                    <span class="intelligent-label f-fl">&nbsp;</span> 
                    <h4>用户协议</h4>
                    <span class="intelligent-label f-fl">&nbsp;</span> 
                    <div class="ibox-content">
                        <textarea name="xy3" id="xy3" data-provide="markdown" rows="10" class="txt03 f-r3 required" rows="10" data-valid="isNonEmpty">{$xy['xy3'] ?? '' }</textarea>
                    </div>
                    <span class="intelligent-label f-fl">&nbsp;</span> 
                    <h4>隐私协议</h4>
                    <span class="intelligent-label f-fl">&nbsp;</span> 
                    <div class="ibox-content">
                        <textarea name="xy4" id="xy4" data-provide="markdown" rows="10" class="txt03 f-r3 required" rows="10" data-valid="isNonEmpty">{$xy['xy4'] ?? '' }</textarea>
                    </div>
                    <span class="intelligent-label f-fl">&nbsp;</span> 
                	<div class="item col-xs-12">
                        <span class="intelligent-label f-fl">&nbsp;</span>    
                        <div class="f-fl item-ifo">
                           <a href="javascript:;" class="btn btn-blue f-r3" id="btn_part4">下一步</a>                         
                        </div>
                    </div>
                </div>
                </form>
                <div class="part5 text-center" style="display:none">
                    <?php
                        if(isset($dd['pay_status'])){
                            $status = $dd['pay_status'];
                        }else{
                            $status = 0;
                        }
                    ?>
                    {if condition="$status eq 0"}
                    <h3>微信扫一扫支付</h3>
                    <p><img src="{$img ?? ''}" width="250px;"></p>
                    {else /}
                        <h3>你已支付了相关费用</h3>
                    {/if}
                    <div class="item col-xs-12">
                        <span class="intelligent-label f-fl">&nbsp;</span>    
                        <div class="f-fl item-ifo">
                           <a href="javascript:;" class="btn btn-blue f-r3" id="btn_part5">下一步</a>                         
                        </div>
                    </div>
                </div> 
                <div class="part6 text-center" style="display:none">
                    <h3>现在开始您的投资之旅吧！</h3>

                    <div class="item col-xs-12 text-center">
                        <span class="intelligent-label f-fl">&nbsp;</span>    
                        <div class="">
                           <a href="javascript:;" class="btn btn-blue f-r3" id="btn_part6">跳转小程序授权页面</a>                     
                        </div>
                    </div>
                </div>         
            </div>
        </div>
    </div>
</div>
<div class="m-sPopBg" style="z-index:998;"></div>
<!-- simditor -->
    <script type="text/javascript" src="{$Think.config.site.resource_url}js/plugins/markdown/markdown.js"></script>
    <script type="text/javascript" src="{$Think.config.site.resource_url}js/plugins/markdown/to-markdown.js"></script>
    <script type="text/javascript" src="{$Think.config.site.resource_url}js/plugins/markdown/bootstrap-markdown.js"></script>
    <script type="text/javascript" src="{$Think.config.site.resource_url}js/plugins/markdown/bootstrap-markdown.zh.js"></script>
    <script src="{$Think.config.site.resource_url}js/plugins/layer/layer.js"></script>
<script>
$(function(){
    $('#uplogo').click(function(){
        //alert('123');
        return $('#logo').click();
    });
    $('#logo').change(function(){
        $('#uplogo').val($("#logo").val());
    });
    $('#upsslcert').click(function(){
        return $('#sslcert_path').click();
    });
    $('#sslcert_path').change(function(){
        $('#upsslcert').val($("#sslcert_path").val());
    });
    $('#upsslkey').click(function(){
        return $('#sslkey_path').click();
    });
    $('#sslkey_path').change(function(){
        $('#upsslkey').val($("#sslkey_path").val());
    });
    
	//第一页的确定按钮
	$("#btn_part1").click(function(){	

		if(!verifyCheck._click()) return;  
        var formData = new FormData($( "#Myform1" )[0]);
        $.ajax({ 
              url: '<?php echo \think\Request::instance()->root(); ?>/ausagent/Initialization/base' , 
              type: 'POST', 
              data: formData, 
              async: false, 
              cache: false, 
              contentType: false, 
              processData: false, 
              success: function (result) { 
                if(0 === result.code) {
                    $(".part1").hide();
                    $(".part2").show();
                    $(".step li").eq(1).addClass("on");
                }else{
                    layer.msg(result.msg, {icon: 5});
                }
              }, 
               
         });
		
	});
	//第二页的确定按钮
	$("#btn_part2").click(function(){
        var param = $('#param').val();
		if(!verifyCheck._click()) return;
        if(param==''){ return false; }
        var formdata = $('#Myform2').serialize();
        $.ajax({
            type : 'POST',
            url  : '<?php echo \think\Request::instance()->root(); ?>/ausagent/Initialization/sms',
            dataType : 'json',
            data : formdata,
            async : false,
            success : function(result){
                if(0 == result.code){
                    $(".part2").hide();
                    $(".part3").show(); 
                    $(".step li").eq(2).addClass("on");
                }else{
                    layer.msg(result.msg, {icon: 5});
                }
            },
            error : function(){
                layer.msg('服务器错误！请稍后重试', {icon: 2});
            }
        })
		
	});	
	//第三页的确定按钮
	$("#btn_part3").click(function(){			
		if(!verifyCheck._click()) return;
        var formData = new FormData($( "#Myform3" )[0]);
        $.ajax({ 
              url: '<?php echo \think\Request::instance()->root(); ?>/ausagent/Initialization/pay' , 
              type: 'POST', 
              data: formData, 
              async: false, 
              cache: false, 
              contentType: false, 
              processData: false, 
              success: function (result) { 
                if(0 === result.code) {
                    $(".part3").hide();
                    $(".part4").show();
                    $(".step li").eq(3).addClass("on");
                }else{
                    layer.msg(result.msg, {icon: 5});
                }
              }, 
               
         });
				
	});	
    $("#btn_part4").click(function(){           
        if(!verifyCheck._click()) return;
        var formdata = $('#Myform4').serialize();
        $.ajax({ 
              type : 'POST',
              url  : '<?php echo \think\Request::instance()->root(); ?>/ausagent/Initialization/xy',
              dataType : 'json',
              data : formdata,
              async : false,
              success: function (result) { 
                if(0 === result.code) {
                    $(".part4").hide();
                    $(".part5").show();
                    $(".step li").eq(4).addClass("on");
                }else{
                    layer.msg(result.msg, {icon: 5});
                }
              }, 
               
         }); 
        
            
    });
    <?php if(isset($status)){
            $sta = $status;
        }else{
            $sta ='';
        }
    ?>
    <?php if($sta == 1){ ?>
    $("#btn_part5").click(function(){           
       if(!verifyCheck._click()) return;
       /* $(".part5").hide();
        $(".part6").show();
        $(".step li").eq(5).addClass("on");*/
        var id = "{$v.id}";
        $.ajax({ 
              type : 'POST',
              url  : '<?php echo \think\Request::instance()->root(); ?>/ausagent/Initialization/edit',
              dataType : 'json',
              data : {id:id},
              async : false,
              success: function (result) { 
                if(0 === result.code) {
                   $(".part5").hide();
                   $('#btn_part6').attr('href',result.msg);
                   $(".part6").show();
                   $(".step li").eq(5).addClass("on");
                }else{
                    layer.msg(result.msg, {icon: 5});
                }
              }, 
               
         });

    });
    <?php } else {?>
        $("#btn_part5").click(function(){           
       if(!verifyCheck._click()) return;
       /* $(".part5").hide();
        $(".part6").show();
        $(".step li").eq(5).addClass("on");*/
        var id = "{$v.id}";
        var did = "{$dd['id'] ?? ''}";
        $.ajax({ 
              type : 'POST',
              url  : '<?php echo \think\Request::instance()->root(); ?>/ausagent/Initialization/oedit',
              dataType : 'json',
              data : {id:id,did:did},
              async : false,
              success: function (result) { 
                if(0 === result.code) {
                   $(".part5").hide();
                   $(".part6").show();
                   $('#btn_part6').attr('href',result.msg);
                   $(".step li").eq(5).addClass("on");
                }else{
                    layer.msg(result.msg, {icon: 5});
                }
              }, 
               
         });
        });
    <?php } ?>
});
function showoutc(){$(".m-sPopBg,.m-sPopCon").show();}
function closeClause(){
	$(".m-sPopBg,.m-sPopCon").hide();		
}
</script>
</body>
</html>
